package com.ios.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * IosSysDic entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ios_sys_dic", catalog = "ios")
public class IosSysDic implements java.io.Serializable {

	// Fields

	private Long dicId;
	private String dicCode;
	private String dicName;
	private String dicDesc;
	private String dicOtherInfo;
	private Long childDicId;
	private Long parentDicId;
	private Long createUserId;
	private String createUserName;
	private String createTime;
	private String version;

	// Constructors

	/** default constructor */
	public IosSysDic() {
	}

	/** minimal constructor */
	public IosSysDic(String dicCode, String dicName) {
		this.dicCode = dicCode;
		this.dicName = dicName;
	}

	/** full constructor */
	public IosSysDic(String dicCode, String dicName, String dicDesc,
			String dicOtherInfo, Long childDicId, Long parentDicId,
			Long createUserId, String createUserName, String createTime,
			String version) {
		this.dicCode = dicCode;
		this.dicName = dicName;
		this.dicDesc = dicDesc;
		this.dicOtherInfo = dicOtherInfo;
		this.childDicId = childDicId;
		this.parentDicId = parentDicId;
		this.createUserId = createUserId;
		this.createUserName = createUserName;
		this.createTime = createTime;
		this.version = version;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "dic_id", unique = true, nullable = false)
	public Long getDicId() {
		return this.dicId;
	}

	public void setDicId(Long dicId) {
		this.dicId = dicId;
	}

	@Column(name = "dic_code", nullable = false, length = 100)
	public String getDicCode() {
		return this.dicCode;
	}

	public void setDicCode(String dicCode) {
		this.dicCode = dicCode;
	}

	@Column(name = "dic_name", nullable = false, length = 100)
	public String getDicName() {
		return this.dicName;
	}

	public void setDicName(String dicName) {
		this.dicName = dicName;
	}

	@Column(name = "dic_desc", length = 300)
	public String getDicDesc() {
		return this.dicDesc;
	}

	public void setDicDesc(String dicDesc) {
		this.dicDesc = dicDesc;
	}

	@Column(name = "dic_other_info", length = 100)
	public String getDicOtherInfo() {
		return this.dicOtherInfo;
	}

	public void setDicOtherInfo(String dicOtherInfo) {
		this.dicOtherInfo = dicOtherInfo;
	}

	@Column(name = "child_dic_id")
	public Long getChildDicId() {
		return this.childDicId;
	}

	public void setChildDicId(Long childDicId) {
		this.childDicId = childDicId;
	}

	@Column(name = "parent_dic_id")
	public Long getParentDicId() {
		return this.parentDicId;
	}

	public void setParentDicId(Long parentDicId) {
		this.parentDicId = parentDicId;
	}

	@Column(name = "create_user_id")
	public Long getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "create_user_name", length = 100)
	public String getCreateUserName() {
		return this.createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@Column(name = "create_time", length = 14)
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "version", length = 10)
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}